SUTIL_TEST_CPPFILE = main.cpp
SUTIL_TEST_TARGET = sutil_test 
TARGETS = $(SUTIL_TEST_TARGET)
SUTIL_TEST_OBJFILE = $(patsubst %.cpp, %.o, $(SUTIL_TEST_CPPFILE))
CXX = g++
INC_DIR = -I../../../3party/log4cxx/include -I../include

LIBS = -L../../../3party/log4cxx/lib -L../../../3party/apr/lib -llog4cxx -lapr-1 -laprutil-1 -L../../../lib -lsutil

CXXFLAGS = -g -Wall -O2

.PHONY : all

all: $(TARGETS) 

$(SUTIL_TEST_TARGET): $(SUTIL_TEST_OBJFILE)
	        $(CXX) $(CXXFLAGS) $^ $(LIBS) -o $@

%.o : %.cpp
	        $(CXX) -c $(CXXFLAGS) $(INC_DIR) $< -o $@

.PHONY : clean

clean:
	        rm -f *.o $(TARGETS)
